home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / DesktopAnimBase.xh < prev    next >
Text File  |  1996-05-01  |  13KB  |  464 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: DesktopAnimBase.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_DesktopAnimBase_xh
  11. #define SOM_DesktopAnimBase_xh
  12.  
  13. class DesktopAnimBase;
  14.  
  15. #define DesktopAnimBase_MajorVersion 0
  16. #define DesktopAnimBase_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <Collections.h>
  22. #include <DesktopAnimation.h>
  23. #include <Displays.h>
  24. #include <MemAllocators.h>
  25. #include <Types.h>
  26.  
  27. /* C++ SOM defs */
  28. #include <somcls.xh>
  29. #include <somcm.xh>
  30.  
  31. /* C++ parent defs */
  32. #ifndef SOM_SOMObject_xh
  33. #include <somobj.xh>
  34. #endif
  35.  
  36. #ifndef DesktopAnimBase_API
  37. #define DesktopAnimBase_API
  38. /*
  39.  * -- The Class API
  40.  */
  41.  
  42. /*
  43.  * Start of user-defined types:
  44.  */
  45. class SOMClass;
  46. class SOMObject;
  47. class Repository;
  48.  
  49. /*
  50.  * End of user-defined types.
  51.  */
  52.  
  53. #ifdef OLDIBMSOMAPISUPPORT
  54. #define DesktopAnimBaseCClassData DesktopAnimBaseClassData
  55. #define DesktopAnimBaseNewClass(major,minor) somNewVersionedClassReference(DesktopAnimBase,major,minor)
  56. #endif
  57.  
  58. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  59. #define DesktopAnimBaseMetaClass SOMClass
  60.  
  61. #if PRAGMA_ALIGN_SUPPORTED
  62. #  pragma options align=power
  63. #endif
  64.  
  65. /* The API to the DesktopAnimBase class object, and the methods it introduces. */
  66. SOMEXTERN struct DesktopAnimBaseClassDataStructure {
  67. #ifdef OLDIBMSOMAPISUPPORT
  68.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  69. #else
  70.     long zero;
  71. #endif
  72.     somStaticClassInfo *sci;
  73.     somDToken        instanceDataToken;
  74.     long reserved [3];
  75.     somMToken InitializeBase;
  76.     somMToken CloseBase;
  77.     somMToken GetDesktopAnimCollectionItem;
  78.     somMToken ReadDesktopAnimCollection;
  79.     somMToken AddDesktopAnimCollectionItem;
  80.     somMToken WriteDesktopAnimCollection;
  81.     somMToken GetDesktopAnimCollectionItemData;
  82.     somMToken RemoveDesktopAnimCollectionItem;
  83.     somMToken GetModuleDescription;
  84. } SOMDLINK DesktopAnimBaseClassData;
  85.  
  86. #if PRAGMA_ALIGN_SUPPORTED
  87. #  pragma options align=reset
  88. #endif
  89.  
  90. #if !defined(DesktopAnimBase_Class_Source) && !defined(SOM_Module_desktopanimbase_Source)
  91. #if PRAGMA_IMPORT_SUPPORTED
  92. #pragma import list DesktopAnimBaseClassData
  93. #endif
  94. #endif
  95.  
  96.  
  97. /*
  98.  * -- Typedefs for DesktopAnimBase Method Procedures
  99.  */
  100. SOMEXTERN {
  101. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_InitializeBase)(DesktopAnimBase *somSelf, Environment *ev,
  102.         AVIDType prefsDisplayID,
  103.         DesktopAnimModuleDescRef moduleDescRef,
  104.         DesktopAnimModuleInfo* moduleInfo);
  105. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_CloseBase)(DesktopAnimBase *somSelf, Environment *ev);
  106. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_AddDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
  107.         CollectionTag tag,
  108.         UInt32 itemSize,
  109.         void* itemData);
  110. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_GetDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
  111.         CollectionTag tag,
  112.         UInt32* itemSize,
  113.         void* itemData);
  114. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_GetDesktopAnimCollectionItemData)(DesktopAnimBase *somSelf, Environment *ev,
  115.         CollectionTag tag,
  116.         MemAllocatorRef memAllocator,
  117.         UInt32* itemSize,
  118.         void** itemData);
  119. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_RemoveDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
  120.         CollectionTag tag);
  121. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_ReadDesktopAnimCollection)(DesktopAnimBase *somSelf, Environment *ev);
  122. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_WriteDesktopAnimCollection)(DesktopAnimBase *somSelf, Environment *ev);
  123. typedef OSStatus   (* SOMLINK somTD_DesktopAnimBase_GetModuleDescription)(DesktopAnimBase *somSelf, Environment *ev,
  124.         DesktopAnimModuleDescRef* moduleDescRef);
  125.  
  126. /*
  127.  * -- Typedefs for Inherited Methods
  128.  */
  129. typedef void   (* SOMLINK somTD_DesktopAnimBase_somInit)(DesktopAnimBase *somSelf);
  130. typedef void   (* SOMLINK somTD_DesktopAnimBase_somUninit)(DesktopAnimBase *somSelf);
  131. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimBase_somDuplicateReference)(DesktopAnimBase *somSelf);
  132. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somCompareReference)(DesktopAnimBase *somSelf,
  133.         SOMObject* anObject);
  134. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimBase_somRelease)(DesktopAnimBase *somSelf);
  135. typedef void   (* SOMLINK somTD_DesktopAnimBase_somFree)(DesktopAnimBase *somSelf);
  136. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somCanDelete)(DesktopAnimBase *somSelf);
  137. typedef SOMClass*   (* SOMLINK somTD_DesktopAnimBase_somGetClass)(DesktopAnimBase *somSelf);
  138. typedef corbastring   (* SOMLINK somTD_DesktopAnimBase_somGetClassName)(DesktopAnimBase *somSelf);
  139. typedef long   (* SOMLINK somTD_DesktopAnimBase_somGetSize)(DesktopAnimBase *somSelf);
  140. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somIsA)(DesktopAnimBase *somSelf,
  141.         SOMClass* aClassObj);
  142. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somRespondsTo)(DesktopAnimBase *somSelf,
  143.         somId mId);
  144. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somIsInstanceOf)(DesktopAnimBase *somSelf,
  145.         SOMClass* aClassObj);
  146. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somDispatch)(DesktopAnimBase *somSelf,
  147.         somToken* retValue,
  148.         somId methodId,
  149.         va_list ap);
  150. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somClassDispatch)(DesktopAnimBase *somSelf,
  151.         SOMClass* clsObj,
  152.         somToken* retValue,
  153.         somId methodId,
  154.         va_list ap);
  155. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somCastObj)(DesktopAnimBase *somSelf,
  156.         SOMClass* cls);
  157. typedef boolean   (* SOMLINK somTD_DesktopAnimBase_somResetObj)(DesktopAnimBase *somSelf);
  158. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimBase_somPrintSelf)(DesktopAnimBase *somSelf);
  159. typedef void   (* SOMLINK somTD_DesktopAnimBase_somDumpSelf)(DesktopAnimBase *somSelf,
  160.         long level);
  161. typedef void   (* SOMLINK somTD_DesktopAnimBase_somDumpSelfInt)(DesktopAnimBase *somSelf,
  162.         long level);
  163. }
  164.  
  165. #endif /* DesktopAnimBase_API */
  166.  
  167.  
  168. /*
  169.  * -- This emitter treats Method Tokens as Thunks by default.
  170.  * -- Use the sc modifier "nothunks" to change this default
  171.  */
  172. #undef somresolve_
  173. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  174.  
  175. /*
  176.  * -- The C++ Wrapper Class for DesktopAnimBase
  177.  */
  178. class DesktopAnimBase : public SOMObject
  179. {
  180. public:
  181.  
  182. // DesktopAnimBase::new registers use of the class object, and then uses somNew
  183. // to allocate memory and load the object method table pointer. 
  184. void *operator new(size_t size)
  185. {
  186.     SOM_IgnoreWarning(size);
  187.     // Allocate memory using the default allocator for DesktopAnimBase, and
  188.     // clear mem & set method table pointer, call basic initialization
  189.     return (void*) somNewObject(DesktopAnimBase);
  190. }
  191.  
  192. // DesktopAnimBase::delete uses the default deallocator for the object's class.
  193. void operator delete(void * obj)
  194. {
  195.     if (obj) {
  196.         SOM_Resolve(obj,SOMObject,somFree)
  197.            ( (SOMObject*) obj );
  198.     }
  199. }
  200.  
  201. /* method: InitializeBase */
  202. OSStatus   InitializeBase(Environment *ev,
  203.         AVIDType prefsDisplayID,
  204.         DesktopAnimModuleDescRef moduleDescRef,
  205.         DesktopAnimModuleInfo* moduleInfo)
  206. {
  207.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,InitializeBase)
  208.     (this,ev,prefsDisplayID,moduleDescRef,moduleInfo);
  209. }
  210.  
  211. /* method: CloseBase */
  212. OSStatus   CloseBase(Environment *ev)
  213. {
  214.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,CloseBase)
  215.     (this,ev);
  216. }
  217.  
  218. /* method: AddDesktopAnimCollectionItem */
  219. OSStatus   AddDesktopAnimCollectionItem(Environment *ev,
  220.         CollectionTag tag,
  221.         UInt32 itemSize,
  222.         void* itemData)
  223. {
  224.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,AddDesktopAnimCollectionItem)
  225.     (this,ev,tag,itemSize,itemData);
  226. }
  227.  
  228. /* method: GetDesktopAnimCollectionItem */
  229. OSStatus   GetDesktopAnimCollectionItem(Environment *ev,
  230.         CollectionTag tag,
  231.         UInt32* itemSize,
  232.         void* itemData)
  233. {
  234.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,GetDesktopAnimCollectionItem)
  235.     (this,ev,tag,itemSize,itemData);
  236. }
  237.  
  238. /* method: GetDesktopAnimCollectionItemData */
  239. OSStatus   GetDesktopAnimCollectionItemData(Environment *ev,
  240.         CollectionTag tag,
  241.         MemAllocatorRef memAllocator,
  242.         UInt32* itemSize,
  243.         void** itemData)
  244. {
  245.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,GetDesktopAnimCollectionItemData)
  246.     (this,ev,tag,memAllocator,itemSize,itemData);
  247. }
  248.  
  249. /* method: RemoveDesktopAnimCollectionItem */
  250. OSStatus   RemoveDesktopAnimCollectionItem(Environment *ev,
  251.         CollectionTag tag)
  252. {
  253.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,RemoveDesktopAnimCollectionItem)
  254.     (this,ev,tag);
  255. }
  256.  
  257. /* method: ReadDesktopAnimCollection */
  258. OSStatus   ReadDesktopAnimCollection(Environment *ev)
  259. {
  260.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,ReadDesktopAnimCollection)
  261.     (this,ev);
  262. }
  263.  
  264. /* method: WriteDesktopAnimCollection */
  265. OSStatus   WriteDesktopAnimCollection(Environment *ev)
  266. {
  267.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,WriteDesktopAnimCollection)
  268.     (this,ev);
  269. }
  270.  
  271. /* method: GetModuleDescription */
  272. OSStatus   GetModuleDescription(Environment *ev,
  273.         DesktopAnimModuleDescRef* moduleDescRef)
  274. {
  275.    return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,GetModuleDescription)
  276.     (this,ev,moduleDescRef);
  277. }
  278.  
  279.  
  280. /*
  281.  * -- Inherited methods
  282.  */
  283. /* method: somInit */
  284. void   somInit()
  285. {
  286.    SOM_ResolveD(this,DesktopAnimBase,SOMObject,somInit)
  287.     (this);
  288. }
  289.  
  290. /* method: somUninit */
  291. void   somUninit()
  292. {
  293.    SOM_ResolveD(this,DesktopAnimBase,SOMObject,somUninit)
  294.     (this);
  295. }
  296.  
  297. /* method: somDuplicateReference */
  298. SOMObject*   somDuplicateReference()
  299. {
  300.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDuplicateReference)
  301.     (this);
  302. }
  303.  
  304. /* method: somCompareReference */
  305. boolean   somCompareReference(SOMObject* anObject)
  306. {
  307.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somCompareReference)
  308.     (this,anObject);
  309. }
  310.  
  311. /* method: somRelease */
  312. SOMObject*   somRelease()
  313. {
  314.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somRelease)
  315.     (this);
  316. }
  317.  
  318. /* method: somFree */
  319. void   somFree()
  320. {
  321.    SOM_ResolveD(this,DesktopAnimBase,SOMObject,somFree)
  322.     (this);
  323. }
  324.  
  325. /* method: somCanDelete */
  326. boolean   somCanDelete()
  327. {
  328.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somCanDelete)
  329.     (this);
  330. }
  331.  
  332. /* method: somGetClass */
  333. SOMClass*   somGetClass()
  334. {
  335.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somGetClass)
  336.     (this);
  337. }
  338.  
  339. /* method: somGetClassName */
  340. corbastring   somGetClassName()
  341. {
  342.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somGetClassName)
  343.     (this);
  344. }
  345.  
  346. /* method: somGetSize */
  347. long   somGetSize()
  348. {
  349.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somGetSize)
  350.     (this);
  351. }
  352.  
  353. /* method: somIsA */
  354. boolean   somIsA(SOMClass* aClassObj)
  355. {
  356.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somIsA)
  357.     (this,aClassObj);
  358. }
  359.  
  360. /* method: somRespondsTo */
  361. boolean   somRespondsTo(somId mId)
  362. {
  363.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somRespondsTo)
  364.     (this,mId);
  365. }
  366.  
  367. /* method: somIsInstanceOf */
  368. boolean   somIsInstanceOf(SOMClass* aClassObj)
  369. {
  370.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somIsInstanceOf)
  371.     (this,aClassObj);
  372. }
  373.  
  374. /* va_list method: somDispatch */
  375. /* the va_list invocation form */
  376. boolean   DesktopAnimBase_somDispatch(somToken* retValue,
  377.         somId methodId,
  378.         va_list ap)
  379. {
  380.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDispatch)
  381.     (this,retValue,methodId,ap);
  382. }
  383.  
  384. /* the varargs invocation form */
  385. boolean   somDispatch(somToken* retValue,
  386.         somId methodId,
  387.         ...)
  388. {
  389.    va_list ap;
  390.    va_start(ap, methodId);
  391.       boolean __somResult = 
  392.       (boolean) SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDispatch)
  393.     (this,retValue,methodId,ap);
  394.    va_end(ap);
  395.    return __somResult;
  396. }
  397.  
  398. /* va_list method: somClassDispatch */
  399. /* the va_list invocation form */
  400. boolean   DesktopAnimBase_somClassDispatch(SOMClass* clsObj,
  401.         somToken* retValue,
  402.         somId methodId,
  403.         va_list ap)
  404. {
  405.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somClassDispatch)
  406.     (this,clsObj,retValue,methodId,ap);
  407. }
  408.  
  409. /* the varargs invocation form */
  410. boolean   somClassDispatch(SOMClass* clsObj,
  411.         somToken* retValue,
  412.         somId methodId,
  413.         ...)
  414. {
  415.    va_list ap;
  416.    va_start(ap, methodId);
  417.       boolean __somResult = 
  418.       (boolean) SOM_ResolveD(this,DesktopAnimBase,SOMObject,somClassDispatch)
  419.     (this,clsObj,retValue,methodId,ap);
  420.    va_end(ap);
  421.    return __somResult;
  422. }
  423.  
  424. /* method: somCastObj */
  425. boolean   somCastObj(SOMClass* cls)
  426. {
  427.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somCastObj)
  428.     (this,cls);
  429. }
  430.  
  431. /* method: somResetObj */
  432. boolean   somResetObj()
  433. {
  434.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somResetObj)
  435.     (this);
  436. }
  437.  
  438. /* method: somPrintSelf */
  439. SOMObject*   somPrintSelf()
  440. {
  441.    return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somPrintSelf)
  442.     (this);
  443. }
  444.  
  445. /* method: somDumpSelf */
  446. void   somDumpSelf(long level)
  447. {
  448.    SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDumpSelf)
  449.     (this,level);
  450. }
  451.  
  452. /* method: somDumpSelfInt */
  453. void   somDumpSelfInt(long level)
  454. {
  455.    SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDumpSelfInt)
  456.     (this,level);
  457. }
  458.  
  459. };   /* DesktopAnimBase */
  460.  
  461.  
  462.  
  463. #endif       /* SOM_DesktopAnimBase_xh */
  464.